use crate::{
    editor::{Line, highlighter::Annotation},
    prelude::LineIdx,
};

// 定义语法高亮器应如何工作的trait
pub trait SyntaxHighlighter {
    fn highlight(&mut self, idx: LineIdx, line: &Line);
    fn get_annotations(&self, idx: LineIdx) -> Option<&Vec<Annotation>>;
}
